/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.amitycs.collabdrawing.gui;

import java.awt.Shape;
import java.awt.geom.Ellipse2D;
import org.amitycs.collabdrawing.Whiteboard;

/**
 *
 * @author mike
 */
public class EraserTool extends Tool{

    public EraserTool(Whiteboard wb)
    {
        super(wb);
    }

    Ellipse2D.Double circle;
    private int r = 100;

    @Override
    public Shape onDrag(double x, double y) {
        circle = new Ellipse2D.Double(x - r, y - r, 2*r, 2*r);
        return circle;
    }

    @Override
    public Shape onPress(double x, double y) {
        circle = new Ellipse2D.Double(x - r, y - r, 2*r, 2*r);
        return circle;
    }

    public void onRelease(double x, double y) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
